// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "Kismet/BlueprintFunctionLibrary.h"
#include "Lele_Math.generated.h"

/**
 * 
 */
UCLASS()
class ISALONG2_API ULele_Math : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()

public:

	//This function no work!!!!!
	UFUNCTION(BlueprintCallable, Category = "LeleMathBPLibrary")
	static void FeetDecalToActor(ADecalActor* decal, AActor* targetActor);
	
	UFUNCTION(BlueprintCallable, Category = "LeleMathBPLibrary")
	static FVector ProjectPointToLine(FVector linePoint, FVector lineDirection, FVector sourcePoint);

	UFUNCTION(BlueprintCallable, Category = "LeleMathBPLibrary")
	static void SnapeToObject(float distance, AActor* originObj, AActor* beSnapedObj);

	UFUNCTION(BlueprintCallable, Category = "LeleMathBPLibrary")
	static void SnapeToObjectSide(float distance, FVector direction, AActor* originObj, AActor* beSnapedObj);

	UFUNCTION(BlueprintCallable, Category = "LeleMathBPLibrary")
	static FVector SelectVector(FVector selector, FVector a, FVector b);

	UFUNCTION(BlueprintCallable, Category = "LeleMathBPLibrary")
	static FVector InverseVectorXY(FVector source);
};
